<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <title>新建半成品</title> 

    <link type="text/css" href="/TopJUI/topjui/css/topjui.core.min.css" rel="stylesheet">
    <link type="text/css" href="/TopJUI/topjui/themes/default/topjui.green.css" rel="stylesheet" id="dynamicTheme"/>
    <!-- FontAwesome字体图标 -->
    <link type="text/css" href="/TopJUI/topjui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/pages/css/process.css">    
    <!-- buttons 组件 -->
    <link type="text/css" href="/buttons/buttons.css" rel="stylesheet"/>    
    <!-- jQuery相关引用 -->
    <script type="text/javascript" src="/TopJUI/topjui/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="/TopJUI/topjui/plugins/jquery/jquery.cookie.js"></script>
    <!-- TopJUI框架配置 -->
    <script type="text/javascript" src="/TopJUI/static/public/js/topjui.config.js"></script>
    <!-- TopJUI框架核心-->
    <script type="text/javascript" src="/TopJUI/topjui/js/topjui.core.min.js"></script>
    <!-- TopJUI中文支持 -->
    <script type="text/javascript" src="/TopJUI/topjui/js/locale/topjui.lang.zh_CN.js"></script>

    <script type="text/javascript" src="/pages/js/moment.min.js"></script>
    <script type="text/javascript" src="/pages/js/layer/layer.js"></script>
    <script type="text/javascript" src="/pages/js/util.js"></script>
    <script type="text/javascript" src="/pages/js/shuoheUtil.js"></script>

    <script type="text/javascript" src="/pages/js/vue.js"></script>
    <script type="text/javascript" src="/pages/js/Sortable.min.js"></script>
    <script type="text/javascript" src="/pages/js/vuedraggable.min.js"></script>
    
<style type="text/css">
    html, body{ margin:0; height:100%;width: 100%;border-width:0px}
    .compute-list li{
        float: left;
        padding: 3px 5px;
        margin: 0 15px;
        list-style: none;
        border: 1px solid #dddddd;
        cursor: move;
    }
    .dragCon{
        min-height: 100px;
        padding: 10px 10px;
        border: 1px solid #dddddd;
    }
    .drag-li{
        padding: 0 8px;
        position: relative;
    }
    .drag-li a{
        position: absolute;
        top: 0;
        right: 0;
        font-size: 12px;
        color: #333;
        text-decoration: none;
        display: none;
    }
    .drag-li:hover a{
        display: block;
    }
    .build-btn{
        height: 32px;
        line-height: 32px;
        border: none;
        background-color: #2e8ded;
        color: #fff;
        padding: 0 8px;
        cursor: pointer;
    }
    .const-input{
        width: 60px;
        height: 24px;
        line-height: 24px;
    }    
</style>


<body class="easyui-layout">
    <div data-options="region:'west',iconCls:'icon-reload',title:'',split:false,border:true" 
         style="height:60px;width: 100%;height: 45px;border-width:0px;overflow:hidden" >  
        <table class="editTable" style="text-align: center; margin-top: 0px;margin-left:0px" >
            <tr>
                <td class="label" colspan="4" style="text-align: left;font-size: 20px;">
                    <div class="divider">
                        <span style="margin-left: 50px">筛选条件</span>
                    </div>
                </td>
            </tr>              
	        <tr>
	            <td class="label">风筒板厚</td>
	            <td >
                    <select id='partsName' class="easyui-combobox" data-options="required:false,width:150,editable:true"  >     
                        <option>全选</option>  
                        <option>单选</option>         
                        <option>多选</option>  
                    </select> 
	            </td>
	            <td class="label"></td>
	            <td >
	            </td>
            </tr>	
            <tr>
                <td class="label" colspan="4" style="text-align: left;font-size: 20px;">
                    <div class="divider">
                        <span style="margin-left: 50px">叶轮</span>
                    </div>
                </td>
            </tr>                     
	    </table>
	</div>
	<!-- <div data-options="region:'south',iconCls:'icon-reload',title:'',split:false,border:true" style="height: 45px;border-width:0px">  
        <div style="text-align: right;margin-top: 5px">
            <a onclick='save()' class="button button-primary button-rounded button-small"><i class="fa fa-check"></i>保存</a>
        </div>        
    </div> -->
</body> 
</html>
<script type="text/javascript">
 
 	$(function() {
	  $('#pc_pid').textbox('setValue',GetQueryString('uuid'));
	}); 
	
  function save() {
      var obj = new Object();
      console.info('save');
      obj.pc_pid = $('#pc_pid').textbox('getValue');  
      obj.partsName = $('#partsName').textbox('getValue');  
      obj.partsUnit = $('#partsUnit').textbox('getValue');  
      obj.partsType = $('#partsType').textbox('getValue');  
      obj.ifMatch = $('#ifMatch').textbox('getValue');
      obj.ifChoice = $('#ifChoice').combobox('getText'); 
      $.ajax({
          url: "/extensionModel/save", 
          type: "POST",
          dataType: 'json',
          data: {
              'data': JSON.stringify(obj)
          },
          error: function() //失败
          {
//             shuoheUtil.layerTopMaskOff();
//             shuoheUtil.layerTopMsgError('远程通信失败');
          },
          success: function(data) //成功
          {
              shuoheUtil.layerTopMaskOff();
              if (data.result == true) {
                  var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引          
                  parent.layer.close(index); //再执行关闭
                  parent.parent.$('#dg').datagrid('reload');
                  shuoheUtil.layerMsgSaveOK('保存成功');
              } else {
                  shuoheUtil.layerTopMsgError(data.describe);
              }
          }
      });
  }
</script>
